<template>
	<view class="warp">
		<zy-grid :grid-list=gridList :show-tip="true" :col="3" :title="title" @gridClick="change"></zy-grid>
	</view>
</template>

<script>
	import zyGrid from '@/components/zy-grid/zy-grid.vue'

	export default {
		components: {
			zyGrid,
		},
		data() {
			return {
				title: '用户信息',
				gridList: [{
						name: '推广用户',
						imgUrl: '/static/tui.jpg',
						tips: ''
					},
					{
						name: '填写存款信息',
						imgUrl: '/static/tx.jpg',
						tips: ''
					},
					{
						name: '推广二维码',
						imgUrl: '/static/ewm.jpg',
						tips: ''
					},
					{
						name: '客户兑换信息',
						imgUrl: '/static/dh.jpg',
						tips: ''
					},
					{
						name: '修改密码',
						imgUrl: '/static/xg.jpg',
						tips: ''
					},
					{
						name: '审核管理',
						imgUrl: '/static/sh.jpg',
						tips: ''
					},
				]
			}
		},
		onLoad() {},
		methods: {
			change(index) {
				console.log(index)
				if (index === 0) {
					uni.navigateTo({
						url: '../extension/extension'
					});
				} else if (index === 1) {
					uni.navigateTo({
						url: '../depositInfo/deposit'
					});
				} else if (index === 2) {
					uni.navigateTo({
						url: '../exteQRcode/promote'
					});
				} else if (index === 3) {
					uni.navigateTo({
						url: '../exchInte/exchInte'
					});
				} else if (index === 4) {
					uni.navigateTo({
						url: '../reset/reset'
					});
				} else if (index === 5) {
					uni.navigateTo({
						url: '../review/review'
					});
				}
			}
		}
	}
</script>

<style scoped>
</style>
